#include "HighScore.h"
#include <iostream>

using namespace std;
int main( void )
{
	HighScore highScore;
	HighScoreData temp;

	cout << "Read scorefile:" << endl;
	highScore.readFromFile();


	cout << "Print the current score board:" << endl;
	highScore.printHighScore();

	cout << "Add new highscore [name, score]: ";
	cin >> temp;
	highScore.addHighScoreData(temp);

	cout << "\nPrint the current score board:" << endl;
	highScore.printHighScore();

	cout << "Save current scoreboard to file:" << endl;
	highScore.writeToFile();

	cin.get();
	cin.get();
	return 0;
}